#ifndef TEST_GRAPHICS_WINDOW_EVENT_LISTENER_H
#	define TEST_GRAPHICS_WINDOW_EVENT_LISTENER_H

#include "system/window.h"
#include "system/windoweventlistener.h"

#include "application.h"

namespace test {
	namespace graffiti {

class WindowEventListener
:	public dw::system::Window::EventListener
{
public : //! @name Construction & Destruction
	//! @{
	WindowEventListener()
	:	dw::system::Window::EventListener() { ; }
	virtual ~WindowEventListener() { ; }
	//! @}

public : //! @name dw::system::Window::EventListener Callbacks
	//! @{
	virtual void onClose(dw::system::Window* sender, dw::system::Window::EventArg& eventArg)
	{
		Application::getInstance().stop();
	}

	virtual void onSize(dw::system::Window* sender, dw::system::Window::SizeEventArg& eventArg)
	{
		Application::getInstance().onSize(sender, eventArg);
	}
};

	} // namespace graffiti
} // namespace test

#endif // !TEST_GRAPHICS_WINDOW_EVENT_LISTENER_H
